package com.pig4cloud.pig.demo.Service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.demo.Mapper.OrderMapper;
import com.pig4cloud.pig.demo.Service.OrderService;
import com.pig4cloud.pig.demo.feign.Entity.Order;
import com.pig4cloud.pig.demo.feign.vo.OrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单 Service 实现类
 * Created by caoxuel on 2020/10/19 15:24
 * @author caoxuel
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public IPage<OrderVO> queryOrderList(Page<?> page, Long id) {
        return orderMapper.queryOrderList(page,id);
    }
}
